import { defineStore } from 'pinia'
import config from '@/config/index';

const usePathJumpStore = defineStore('path', {
  actions: {
    viewGoodsDetail(goodsId: any, skuId?: any) { // 跳转买家端商品
      if(skuId){
        window.open(`${config.PC_DOMAIN}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
      }else{
        window.open(`${config.PC_DOMAIN}/goodsDetail?goodsId=${goodsId}`, '_blank')
      }
    }
  }
})
export default usePathJumpStore
